package cn.pop.hsp_system_v2.Mapper;

import cn.pop.hsp_system_v2.Pojo.Doctor;
import cn.pop.hsp_system_v2.Pojo.PatientCard;
import cn.pop.hsp_system_v2.Pojo.Appointment;
import cn.pop.hsp_system_v2.Pojo.Scheduling;

import java.util.List;

/**
 * 病人信息管理Mapper接口
 * 
 * @author pop404
 * @date 2021-11-12
 */
public interface AppointMapper
{
    /**
     *deleteAppointmentById删除预约
     *
     * updatePatientCard更新医保卡
     * updateAppointment更新预约
     * updateScheduling更新时间表
     *
     * insertAppointment新增预约
     * insertPatientCard新增医保卡
     *
     * selectDoctorById查找医生
     * selectSchedulingByDoctorId查找时间表
     * selectPatientCardById查找医保卡
     *
     * selectDoctorList查找医生们
     * selectAppointmentList查找预约表
     * selectSchedulingList查找时间表
     * selectPatientCardList查找医保卡表
     */
    public Doctor selectDoctorById(Long doctor_id);
    public Scheduling selectSchedulingByDoctorId(Long doctor_id);
    public PatientCard selectPatientCardById(Long uuid);

    public List<Doctor> selectDoctorList(Doctor doctor);
    public List<Appointment> selectAppointmentList(Appointment appointment);
    public List<Scheduling> selectSchedulingList(Scheduling scheduling);
    public List<PatientCard> selectPatientCardList(PatientCard patientCard);

    public int insertAppointment(Appointment appointment);
    public int insertPatientCard(PatientCard patientCard);

    public int updatePatientCard(PatientCard patientCard);
    public int updateAppointment(Appointment appointment);
    public int updateScheduling(Scheduling scheduling);

    public int deleteAppointmentById(Long uuid);

}
